package com.rstar.readerbook;

import java.io.IOException;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ReadBookLogo extends Activity implements OnClickListener{
	private Button m_ReadFile;
	private Button m_Findmore;
	private Button m_Setting;
	private Button m_About;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
/*        requestWindowFeature(Window.FEATURE_NO_TITLE);  
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,  
                WindowManager.LayoutParams.FLAG_FULLSCREEN);*/
        setContentView(R.layout.logo);
        init();
    }
    
    private void init(){
    	m_ReadFile = (Button)findViewById(R.id.readfile);
    	m_Findmore = (Button)findViewById(R.id.findfile);
    	m_Setting = (Button)findViewById(R.id.setting);
    	m_About = (Button)findViewById(R.id.about);
    	
    	m_ReadFile.setOnClickListener(this);
    	m_Findmore.setOnClickListener(this);
    	m_Setting.setOnClickListener(this);
    	m_About.setOnClickListener(this);
    }

	public void onClick(View v) {
		Intent intent = new Intent();
		
		switch (v.getId()) {
		case R.id.readfile:
			intent.setClass(ReadBookLogo.this,ReaderBook.class);
			ReadBookLogo.this.startActivity(intent);
			break;
			
		case R.id.findfile:
			intent.setClass(ReadBookLogo.this,TxtList.class);
			ReadBookLogo.this.startActivity(intent);
			break;
			
		case R.id.setting:
			intent.setClass(ReadBookLogo.this,ReaderBookSetting.class);
			ReadBookLogo.this.startActivity(intent);
			break;
			
		case R.id.about:
			intent.setClass(ReadBookLogo.this,ReadBookAbout.class);
			ReadBookLogo.this.startActivity(intent);
			break;

		default:
			break;
		}
		
	}
}
